package com.wxb.hello.auth.beans;

import com.cincc.boot.common.base.GenericVo;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;

/**
 * @author Feng Yu
 * @version V1.0
 * @date 2017-05-05
 */
public class User implements GenericVo {

    private int pkId;

    private String userId;

    @NotBlank(message = "userName can not be empty!")
    private String userName;

    private String roleId;

    private int userType;

    private String nickName;

    @NotBlank(message = "password can not be blank!")
    private String password;

//    @NotBlank(message = "The phone number can not be empty!")
    //@Pattern(regexp = "1[\\d]{10}|0[\\d]{9,11}", message = "电话号码格式错误!")
    public String tel;

    private String email;

    private String fax;

    private String address;

    private String webSite;

    private int status;

    private String remark;

    private int level;

    private BigDecimal alertAmount;

    private String createdTime;

    @Override
    public Integer getOid() {
        return this.pkId;
    }

    @Override
    public void setOid(Object oid) {
        this.pkId = (Integer) oid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }


    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWebSite() {
        return webSite;
    }

    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public BigDecimal getAlertAmount() {
        return alertAmount;
    }

    public void setAlertAmount(BigDecimal alertAmount) {
        this.alertAmount = alertAmount;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public int getPkId() {
        return pkId;
    }

    public void setPkId(int pkId) {
        this.pkId = pkId;
    }
}
